package cn.itcast.user.web;

import cn.itcast.user.config.RedisProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class RedisController {

    @Autowired
    private RedisProperties properties;

    @GetMapping("/props")
    public RedisProperties properties(){

        return properties;

    }

}
